//
//  HZNews.m
//  car4S
//
//  Created by huazi on 14-3-19.
//  Copyright (c) 2014年 huifu. All rights reserved.
//

#import "HZNews.h"

@implementation HZNews
- (id)initWithReceiveDic:(NSDictionary *)dic
{
    if (self =[super init])
    {
        self.NuserId =[dic objectForKey:@"userId"];
        self.NmsgType =[dic objectForKey:@"msgType"];
        self.Ncontent =[dic objectForKey:@"content"];
        self.NdownloadUrl =[dic objectForKey:@"downloadUrl"];
        self.NtimeLength =[dic objectForKey:@"timeLength"];
        self.Nlocation =[dic objectForKey:@"location"];
        self.NphoneUrl =[dic objectForKey:@"photoUrl"];
        self.NnickName =[dic objectForKey:@"nickName"];
        self.NsendTime =[dic objectForKey:@"sendTime"];
        self.NbigpicUrl =[dic objectForKey:@"bigpicUrl"];
        self.NsmallpicUrl =[dic objectForKey:@"smallpicUrl"];
        self.NfilePath =[dic objectForKey:@"filePath"];
        
        self.NisSelf =@"other";
        self.NStatus =@"1";
        self.NisNoRead =@"1";
    }
    return self;
}

- (id)initWithSendDic:(NSDictionary *)dic
{
    if (self =[super init])
    {
        self.NuserId =[dic objectForKey:@"userId"];
        self.NmsgType =[dic objectForKey:@"msgType"];
        self.Ncontent =[dic objectForKey:@"content"];
        self.NdownloadUrl =[dic objectForKey:@"downloadUrl"];
        self.NtimeLength =[dic objectForKey:@"timeLength"];
        self.Nlocation =[dic objectForKey:@"location"];
        self.NphoneUrl =[dic objectForKey:@"photoUrl"];
        self.NnickName =[dic objectForKey:@"nickName"];
        self.NsendTime =[dic objectForKey:@"sendTime"];
        self.NbigpicUrl =[dic objectForKey:@"bigpicUrl"];
        self.NsmallpicUrl =[dic objectForKey:@"smallpicUrl"];
        self.NfilePath =[dic objectForKey:@"filePath"];
        self.NnoReadNum =@"0";
        self.NisSelf =@"self";
        self.NStatus =@"0";
        self.NisNoRead =@"0";
    }
    return self;

}

- (id)initWithDataSql:(NSDictionary *)dic
{
    if (self =[super init])
    {
        self.NuserId =[dic objectForKey:@"userId"];
        self.NmsgType =[dic objectForKey:@"msgType"];
        self.Ncontent =[dic objectForKey:@"content"];
        self.NdownloadUrl =[dic objectForKey:@"downloadUrl"];
        self.NtimeLength =[dic objectForKey:@"timeLength"];
        self.Nlocation =[dic objectForKey:@"location"];
        self.NphoneUrl =[dic objectForKey:@"photoUrl"];
        self.NnickName =[dic objectForKey:@"nickName"];
        self.NsendTime =[dic objectForKey:@"sendTime"];
        self.NbigpicUrl =[dic objectForKey:@"bigpicUrl"];
        self.NsmallpicUrl =[dic objectForKey:@"smallpicUrl"];
        self.NfilePath =[dic objectForKey:@"filePath"];
        self.NisSelf =[dic objectForKey:@"isSelf"];
        self.NnoReadNum =[dic objectForKey:@"noReadNum"];
    }
    return self;


}
@end
